<?php
use Illuminate\Support\Facades\Route;
use \App\Http\Controllers\Api\V1 as V1;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//Route::get('/api/{id}',function (){return '努力学习'})->name('指定路由的别名')->where('id','[0-9]+');
//Route::get('/api/{id}','TestController@index')->where('id','[A-Aa-z]+');
//Route::group(['prefix'=>'路由前缀api','as'=>'路由分组别名','namespace'=>'API','middleware' => 'auth'],
//    function () {
//        Route::get('/api/{id}', function () {
//            return '努力学习';
//        })->name('指定路由的别名')->where('id', '[0-9]+');
//        Route::get('/api/{id}', 'TestController@index')->where('id', '[A-Aa-z]+');
//    }
//);
//Route::get('/aaa',\App\Http\Controllers\TestController::class.'@index');
//Route::get('/abc',V1\AbcController::class.'@index');

Route::get('/', function () {
    return view('welcome');
});
//Route::get('/api/{id}', function () {
//    return '努力学习';
//});